<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
require_once './_AddinLibraries/database_driver.php';

function add_degree($id, $name, $note){
    select_itec_database();
    $sql = db_query("call sp_AddDegree('".$id."','".$name."','".$note."')");
    $result = $sql->fetchAssoc();
    select_drupal_database();
    return $result['adddegree(id, name, note)'];
}

?>
